package com.hpf.springcloud.dao;

import com.hpf.commons.pojo.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @description: 支付的dao
 * @datetime: 2020/8/14 23:29
 * @author: huangpengfei
 */
@Mapper
public interface PaymentDao {

    /**
     * 插入支付
     *
     * @param payment: 支付对象
     * @return int
     * @author huangpengfei
     * @datetime 2020/8/14 23:30
     */
    int create(Payment payment);

    /**
     * 根据id获取详情
     *
     * @param id: id
     * @return com.hpf.springcloud.pojo.Payment
     * @author huangpengfei
     * @datetime 2020/8/14 23:31
     */
    Payment getPaymentById(@Param("id") Long id);
}
